package com.ylyq.ylxx.model.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ClassName OceanengineGetLandingPackage
 * @Description TODO
 * @Author xiaweichao
 * @Date 2020/7/22 14:11
 * @Version 1.0
 */
@NoArgsConstructor
@Data
@ApiModel(value = "获取程序化落地页的返回参数")
public class  OceanengineGetLandingPackage {
    /**
     * message : OK
     * code : 0
     * data : {"audience_package_id":144}
     * request_id : ######
     */

    private String message;
    private int code;
    private DataBean data;
    private String request_id;

    @NoArgsConstructor
    @Data
    @ApiModel(value = "获取程序化落地页的返回参数实体")
    public static class DataBean {
        /**
         * audience_package_id : 144
         */
        private OceanengineGetProceduralPackagePageBean page_info;
        private List<OceanengineGetProceduralPackageListBean> list;
        @NoArgsConstructor
        @Data
        @ApiModel(value = "获取程序化落地页的返回参数实体-分页")
        public static class OceanengineGetProceduralPackagePageBean {
            @ApiModelProperty(value = "\t页数")
            private Long page;
            @ApiModelProperty(value = "\t页面大小")
            private Long page_size;
            @ApiModelProperty(value = "总数")
            private String total_number;
            @ApiModelProperty(value = "总页数")
            private Long total_page;
        }
        @NoArgsConstructor
        @Data
        @ApiModel(value = "获取程序化落地页的返回参数实体-集合")
        public static class OceanengineGetProceduralPackageListBean {
            @ApiModelProperty(value = "落地页组 ID")
            private Long group_id;
            @ApiModelProperty(value = "落地页组名称")
            private String group_title;
            @ApiModelProperty(value = "落地页组 URL")
            private String group_url;
            @ApiModelProperty(value = "落地页组状态。详见详见【附录-落地页组状态】,LANDING_GROUP_STATUS_AVAILABLE\t可用\tLANDING_GROUP_STATUS_UNAVAILABLE\t不可用\n")
            private String group_status;
            @ApiModelProperty(value = "流量分配方式。详见详见【附录-落地页组流量分配方式】")
            private String group_flow_type;
            private List<OceanengineGetSitesBean> sites;
            @NoArgsConstructor
            @Data
            @ApiModel(value = "获取程序化落地页的返回参数实体-集合-站点列表")
            public static class OceanengineGetSitesBean {

                @ApiModelProperty(value = "成员 ID，即站点在落地页组中的唯一标识")
                private Long member_id;
                @ApiModelProperty(value = "站点 ID")
                private Long site_id;
                @ApiModelProperty(value = "站点URL")
                private String site_url;
                @ApiModelProperty(value = "站点启用状态。详见【附录-落地页站点启用状态】")
                private String site_opt_status;
                @ApiModelProperty(value = "站点审核状态。详见【附录-落地页组站点审核状态】")
                private String site_audit_status;

            }
        }
    }
}
